/**
 * 作者: wgx
 * 日期: 2024-11-13 11:17:41
 * 备注: 派对参与奖励配置表
 */
package com.motu.monstercity.server.game.commondata.feast;

import io.vertx.core.json.JsonObject;

public class FeastJoinModel {
    protected int id; // id
    protected int feastType; // 派对类型 (1-普通派对，2-盛典派对)
    protected int joinType; // 参与类型哪种赞助等
    protected String costItem; // 参与消耗的道具
    protected String reward; // 参与获得的奖励

    public FeastJoinModel() {
    }

    public FeastJoinModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        feastType = obj.containsKey("feast_type") ? obj.getInteger("feast_type") : 0;
        joinType = obj.containsKey("join_type") ? obj.getInteger("join_type") : 0;
        costItem = obj.containsKey("cost_item") ? obj.getString("cost_item") : "";
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
    }

    public int getId() {
        return id;
    }

    public int getFeastType() {
        return feastType;
    }

    public int getJoinType() {
        return joinType;
    }

    public String getCostItem() {
        return costItem;
    }

    public String getReward() {
        return reward;
    }

}
